package com.apache.flow.core.entity;

import java.math.BigDecimal;
import java.sql.Blob;
import java.sql.Clob;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

@Entity
@Table(name = "JBPM4_LOB")
public class FlowInitEntity implements java.io.Serializable {

	// Fields

	private BigDecimal dbid;
	private Long dbversion;
	private Blob blobValue;
	private BigDecimal deployment;
	private Clob name;

	// Constructors

	/** default constructor */
	public FlowInitEntity() {
	}

	/** minimal constructor */
	public FlowInitEntity(BigDecimal dbid, Long dbversion) {
		this.dbid = dbid;
		this.dbversion = dbversion;
	}

	/** full constructor */
	public FlowInitEntity(BigDecimal dbid, Long dbversion, Blob blobValue, BigDecimal deployment, Clob name) {
		this.dbid = dbid;
		this.dbversion = dbversion;
		this.blobValue = blobValue;
		this.deployment = deployment;
		this.name = name;
	}

	// Property accessors
	@Id
	@Column(name = "DBID_", unique = true, nullable = false, scale = 0)
	public BigDecimal getDbid() {
		return this.dbid;
	}

	public void setDbid(BigDecimal dbid) {
		this.dbid = dbid;
	}

	@Column(name = "DBVERSION_", nullable = false, precision = 10, scale = 0)
	public Long getDbversion() {
		return this.dbversion;
	}

	public void setDbversion(Long dbversion) {
		this.dbversion = dbversion;
	}

	@Lob
	@Column(name = "BLOB_VALUE_", columnDefinition = "BLOB")
	public Blob getBlobValue() {
		return this.blobValue;
	}

	public void setBlobValue(Blob blobValue) {
		this.blobValue = blobValue;
	}

	@Column(name = "DEPLOYMENT_", scale = 0)
	public BigDecimal getDeployment() {
		return this.deployment;
	}

	public void setDeployment(BigDecimal deployment) {
		this.deployment = deployment;
	}

	@Column(name = "NAME_")
	public Clob getName() {
		return this.name;
	}

	public void setName(Clob name) {
		this.name = name;
	}

}